/**
 * Created by zeng on 2018/7/10.
 */
document.write("管理费蛋壳到世界");
document.write("<h1>管理费蛋壳到世界</h1>");


var names=new Array("丰富的","他的","岁的法国","公司发的");
document.write(names);
document.write("<br> namws join "+names.join("_"));
document.write("<br> namws sort "+names.sort());
names.push("的后果可是","你说的");
document.write("<br> names"+names);



var name="疯狂的";
var name2;
var age=19;
var falg=false;
var kong=null;
document.write("<br/> name typeof"+ typeof (name));
document.write("<br/> name2 typeof"+ typeof (name2));
document.write("<br/> age typeof"+ typeof (age));
document.write("<br/> falg typeof"+ typeof (falg));
document.write("<br/> kong typeof"+ typeof (kong));

var str="客户的发给农户贷款防盗否登录";
document.write("str 长度："+str.length);
document.write("str 中发给的位置："+str.indexOf('发给'));
document.write("str 0-4："+str.substring(0,4));
var ss=str.split("");
document.write(ss+"\n");



var names=new Array("丰富的","他的","岁的法国","公司发的");
for (var n in names){
    document.write(names[n]+"<br>")
}




/*teacher=prompt("你喜欢的老师","王京");
alert("你输入了"+teacher);*/



var c=new Array("America","Greece","Britain","Canada","China","Egypt");
var j=0;
for(var i=0; i<c.length;i++){
    if (c[i].toUpperCase().indexOf('A')!=-1){
        j++;
    }
}
document.write(j);